package com.punai.config.sqlitedomain;

import com.punai.config.sqlitedomain.basic.SqliteEntity;

import java.util.Date;

public class Structure extends SqliteEntity {

    private String id;
    private String code;
    private String name;
    private String parentId;
    private String unit;
    private String isGroupData;
    private String type = "";
    private Date createDate;
    private Integer editState;
    private Date lastModify;
    private String sreachKey;
    private Integer version;
    private String dataType;
    private Integer sorting;
    private String speciality;
    private String showRule="00";
    private String calculationCode;

    private String templateId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getIsGroupData() {
        return isGroupData;
    }

    public void setIsGroupData(String isGroupData) {
        this.isGroupData = isGroupData;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getEditState() {
        return editState;
    }

    public void setEditState(Integer editState) {
        this.editState = editState;
    }

    public Date getLastModify() {
        return lastModify;
    }

    public void setLastModify(Date lastModify) {
        this.lastModify = lastModify;
    }

    public String getSreachKey() {
        return sreachKey;
    }

    public void setSreachKey(String sreachKey) {
        this.sreachKey = sreachKey;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public Integer getSorting() {
        return sorting;
    }

    public void setSorting(Integer sorting) {
        this.sorting = sorting;
    }

    public String getSpeciality() {
        return speciality;
    }

    public void setSpeciality(String speciality) {
        this.speciality = speciality;
    }

    public String getShowRule() {
        return showRule;
    }

    public void setShowRule(String showRule) {
        this.showRule = showRule;
    }

    public String getCalculationCode() {
        return calculationCode;
    }

    public void setCalculationCode(String calculationCode) {
        this.calculationCode = calculationCode;
    }


    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    @Override
    public String toString() {
        return "Structure{" +
                "id='" + id + '\'' +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", parentId='" + parentId + '\'' +
                ", unit='" + unit + '\'' +
                ", isGroupData='" + isGroupData + '\'' +
                ", type='" + type + '\'' +
                ", createDate=" + createDate +
                ", editState=" + editState +
                ", lastModify=" + lastModify +
                ", sreachKey='" + sreachKey + '\'' +
                ", version=" + version +
                ", dataType='" + dataType + '\'' +
                ", sorting=" + sorting +
                ", speciality='" + speciality + '\'' +
                ", showRule='" + showRule + '\'' +
                ", calculationCode='" + calculationCode + '\'' +
                '}';
    }
}
